xen: arm: Make register bit definitions unsigned.
authorIan Campbell <ian.campbell@citrix.com>
Thu, 10 Oct 2013 12:12:10 +0000 (13:12 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 29 Nov 2013 09:26:07 +0000 (09:26 +0000)
commit21f81ab1c6be3c110d865f2084e882a970e10c61
treee3b15529788eec68e2e7d763d45c058db863ecf5
parent6dd38956335a49075dd6103106e264aa01df508f
xen: arm: Make register bit definitions unsigned.

Otherwise the results of the shifting can be undefined and/or sign extended.

Most registers are 32-bit on both arm32 and arm64 and hence are just unsigned
ints, however HCR is 64-bit on arm64 and therefore is unsigned long.

Pointed out in the context of HCR_* by Pranavkumar Sawargaonkar.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Julien Grall <julien.grall@linaro.org>
Cc: Pranavkumar Sawargaonkar <psawargaonkar@apm.com>
xen/include/asm-arm/processor.h